import Vue from 'vue'
import { Button } from 'element-ui'
import {
    Form,
    FormItem,
    Input,
    Message, //导入弹出框提示组件
    Header,
    Container,
    Aside,
    Main,
    // 侧边栏
    Menu,
    Submenu,
    MenuItemGroup,
    MenuItem,
    // 面包屑
    Breadcrumb,
    BreadcrumbItem,
    // 卡片
    Card,
    Col,
    Row,
    // 列表
    Table,
    TableColumn,
    Switch,
    Tooltip,
    // 分页
    Pagination,
    Dialog,
    MessageBox,
    Tag,
    Tree,
    Select,
    Option,
    Cascader,
    // 警告框
    Alert,
    Tabs,
    TabPane,
    Step,
    Steps,
    Checkbox,
    CheckboxGroup,
    Upload
} from 'element-ui'

Vue.use(Button)
    .use(Form)
    .use(FormItem)
    .use(Input)
    .use(Header)
    .use(Container)
    .use(Aside)
    .use(Main)
    .use(Menu)
    .use(Submenu)
    .use(MenuItemGroup)
    .use(MenuItem)
    .use(Breadcrumb)
    .use(BreadcrumbItem)
    .use(Card)
    .use(Col)
    .use(Row)
    .use(Table)
    .use(TableColumn).use(Switch).use(Tooltip)
    .use(Pagination).use(Dialog)
    .use(Tag).use(Tree).use(Select).use(Option)
    .use(Cascader)
    .use(Alert)
    .use(Tabs).use(TabPane)
    .use(Step).use(Steps)
    .use(CheckboxGroup).use(Checkbox)
    .use(Upload)
// 全局挂载
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
